package com.zhiyou100.service.impl;

import com.zhiyou100.service.Test01Service;
import org.springframework.stereotype.Service;

/**
 * 异常处理 服务实现类
 *
 * @author yang
 * @version 1.0.0
 * @date 2020-09-02 20:53
 */

@Service
public class Test01Impl implements Test01Service {
    @Override
    public boolean pdSname(String name) {
        return "tom".equals(name);
    }

    @Override
    public boolean pdSnameAndSpwd(String sname, String spwd) {
        return "tom".equals(sname) && "123".equals(spwd);
    }
}
